using UnityEngine;
using System.Collections;

public class splashScreen : MonoBehaviour 
{
	int x = (Screen.width/2) - 250;
	int y = (Screen.height/2) - 250;
	public Texture2D logo;
	int timer = 0;

	// Use this for initialization
	void Start () 
	{
		
	}
	
	// Update is called once per frame
	void Update () 
	{
		if(timer == 200)
		{
			Application.LoadLevel(1);
		}
		else
		{
			timer++;
		}
	}
	
	void OnGUI()
	{
		GUI.Box(new Rect(x, y, 500, 500), logo);
	}
}
